﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Entidades="clr-namespace:BancoSim.Entidades.Entidades;assembly=BancoSim.Entidades" mc:Ignorable="d" x:Class="BancoSim.Ventanas_Modales.cwRegistrarGrupo"
        Title="cwRegistrarGrupo" Height="116" Width="309" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen" AllowsTransparency="True" WindowStyle="None" Visibility="Visible" ResizeMode="NoResize" Topmost="True" Background="{x:Null}">

    <Window.Resources>
        <CollectionViewSource x:Key="clGrupoViewSource" d:DesignSource="{d:DesignInstance {x:Type Entidades:clGrupo}, CreateList=True}"/>
    </Window.Resources>
    <Grid Height="106" VerticalAlignment="Bottom">
        <Rectangle Fill="Black" RadiusY="5" RadiusX="5" HorizontalAlignment="Left" Width="300" />
        <Grid x:Name="grdRegistrarGrupo" VerticalAlignment="Top" DataContext="{StaticResource clGrupoViewSource}" Margin="141,28,10,0">
            <TextBox x:Name="nombreGrupoTextBox" VerticalAlignment="Center" Text="{Binding NombreGrupo, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true}" Height="22" Margin="-22,0,0,0" HorizontalAlignment="Left" Width="171"/>
        </Grid>
        <Label VerticalAlignment="Center" Margin="22,24,0,50" HorizontalAlignment="Left" Content="Nombre Grupo:" Foreground="#FFECDDDD"/>
        <Button x:Name="btnGuardar" Content="Guardar" Margin="80,65,80,10" Click="btnGuardar_Click"/>
        <Button HorizontalAlignment="Left" Margin="289,-10,0,96" Click="Button_Click_1" Width="21" Style="{DynamicResource btnStyleClose}"/>
    </Grid>
</Window>
